/*
 * XML Type:  id
 * Namespace: http://java.sun.com/xml/ns/persistence/orm
 * Java type: com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Id
 *
 * Automatically generated - do not modify.
 */
package com.googlecode.horncomb.orm.jpa.v10.xmlbeans.impl;
/**
 * An XML id(@http://java.sun.com/xml/ns/persistence/orm).
 *
 * This is a complex type.
 */
public class IdImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Id
{
    
    /**  */
	private static final long serialVersionUID = -5871158484807704267L;


	public IdImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COLUMN$0 = 
        new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence/orm", "column");
    private static final javax.xml.namespace.QName GENERATEDVALUE$2 = 
        new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence/orm", "generated-value");
    private static final javax.xml.namespace.QName TEMPORAL$4 = 
        new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence/orm", "temporal");
    private static final javax.xml.namespace.QName TABLEGENERATOR$6 = 
        new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence/orm", "table-generator");
    private static final javax.xml.namespace.QName SEQUENCEGENERATOR$8 = 
        new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence/orm", "sequence-generator");
    private static final javax.xml.namespace.QName NAME$10 = 
        new javax.xml.namespace.QName("", "name");
    
    
    /**
     * Gets the "column" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column getColumn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column)get_store().find_element_user(COLUMN$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "column" element
     */
    public boolean isSetColumn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COLUMN$0) != 0;
        }
    }
    
    /**
     * Sets the "column" element
     */
    public void setColumn(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column column)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column)get_store().find_element_user(COLUMN$0, 0);
            if (target == null)
            {
                target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column)get_store().add_element_user(COLUMN$0);
            }
            target.set(column);
        }
    }
    
    /**
     * Appends and returns a new empty "column" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column addNewColumn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Column)get_store().add_element_user(COLUMN$0);
            return target;
        }
    }
    
    /**
     * Unsets the "column" element
     */
    public void unsetColumn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COLUMN$0, 0);
        }
    }
    
    /**
     * Gets the "generated-value" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue getGeneratedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue)get_store().find_element_user(GENERATEDVALUE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "generated-value" element
     */
    public boolean isSetGeneratedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GENERATEDVALUE$2) != 0;
        }
    }
    
    /**
     * Sets the "generated-value" element
     */
    public void setGeneratedValue(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue generatedValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue)get_store().find_element_user(GENERATEDVALUE$2, 0);
            if (target == null)
            {
                target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue)get_store().add_element_user(GENERATEDVALUE$2);
            }
            target.set(generatedValue);
        }
    }
    
    /**
     * Appends and returns a new empty "generated-value" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue addNewGeneratedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.GeneratedValue)get_store().add_element_user(GENERATEDVALUE$2);
            return target;
        }
    }
    
    /**
     * Unsets the "generated-value" element
     */
    public void unsetGeneratedValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GENERATEDVALUE$2, 0);
        }
    }
    
    /**
     * Gets the "temporal" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TemporalType.Enum getTemporal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEMPORAL$4, 0);
            if (target == null)
            {
                return null;
            }
            return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TemporalType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "temporal" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal xgetTemporal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal)get_store().find_element_user(TEMPORAL$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "temporal" element
     */
    public boolean isSetTemporal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEMPORAL$4) != 0;
        }
    }
    
    /**
     * Sets the "temporal" element
     */
    public void setTemporal(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TemporalType.Enum temporal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEMPORAL$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEMPORAL$4);
            }
            target.setEnumValue(temporal);
        }
    }
    
    /**
     * Sets (as xml) the "temporal" element
     */
    public void xsetTemporal(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal temporal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal)get_store().find_element_user(TEMPORAL$4, 0);
            if (target == null)
            {
                target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.Temporal)get_store().add_element_user(TEMPORAL$4);
            }
            target.set(temporal);
        }
    }
    
    /**
     * Unsets the "temporal" element
     */
    public void unsetTemporal()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEMPORAL$4, 0);
        }
    }
    
    /**
     * Gets the "table-generator" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator getTableGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator)get_store().find_element_user(TABLEGENERATOR$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "table-generator" element
     */
    public boolean isSetTableGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TABLEGENERATOR$6) != 0;
        }
    }
    
    /**
     * Sets the "table-generator" element
     */
    public void setTableGenerator(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator tableGenerator)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator)get_store().find_element_user(TABLEGENERATOR$6, 0);
            if (target == null)
            {
                target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator)get_store().add_element_user(TABLEGENERATOR$6);
            }
            target.set(tableGenerator);
        }
    }
    
    /**
     * Appends and returns a new empty "table-generator" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator addNewTableGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.TableGenerator)get_store().add_element_user(TABLEGENERATOR$6);
            return target;
        }
    }
    
    /**
     * Unsets the "table-generator" element
     */
    public void unsetTableGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TABLEGENERATOR$6, 0);
        }
    }
    
    /**
     * Gets the "sequence-generator" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator getSequenceGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator)get_store().find_element_user(SEQUENCEGENERATOR$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "sequence-generator" element
     */
    public boolean isSetSequenceGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SEQUENCEGENERATOR$8) != 0;
        }
    }
    
    /**
     * Sets the "sequence-generator" element
     */
    public void setSequenceGenerator(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator sequenceGenerator)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator)get_store().find_element_user(SEQUENCEGENERATOR$8, 0);
            if (target == null)
            {
                target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator)get_store().add_element_user(SEQUENCEGENERATOR$8);
            }
            target.set(sequenceGenerator);
        }
    }
    
    /**
     * Appends and returns a new empty "sequence-generator" element
     */
    public com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator addNewSequenceGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator target = null;
            target = (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.SequenceGenerator)get_store().add_element_user(SEQUENCEGENERATOR$8);
            return target;
        }
    }
    
    /**
     * Unsets the "sequence-generator" element
     */
    public void unsetSequenceGenerator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SEQUENCEGENERATOR$8, 0);
        }
    }
    
    /**
     * Gets the "name" attribute
     */
    public java.lang.String getName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$10);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" attribute
     */
    public org.apache.xmlbeans.XmlString xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$10);
            return target;
        }
    }
    
    /**
     * Sets the "name" attribute
     */
    public void setName(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$10);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" attribute
     */
    public void xsetName(org.apache.xmlbeans.XmlString name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$10);
            }
            target.set(name);
        }
    }
}
